package com.heima.wemedia.mapper;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.wemedia.pojos.WmNewsMaterial;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: xsz
 * @DateTime: 2024/1/9 23:30
 **/

@Mapper
public interface WmNewsMaterialMapper extends BaseMapper<WmNewsMaterialMapper> {

    void saveRelations(@Param("materialIds") List<Integer> materialIds,@Param("newsId") Integer newsId, @Param("type") Short type);

    void deleteNewsMaterial(Integer id);

}
